package com.fractalist.base.core.web;

import javax.servlet.http.HttpServletRequest;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.InterceptorRef;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

@Controller
@Scope("prototype")
@ParentPackage("default")
public class SystemAction extends BaseActionSupport  {

	@Action(value = "error", interceptorRefs = @InterceptorRef("basicStack"))
	public String error() {
		HttpServletRequest request = getRequest();
		
		String page=(String)request.getAttribute("page");
		
		return redirect(page);
	}
}
